//package com.yanfan.ccapicode.report;
//
//import com.alibaba.fastjson2.JSONObject;
//import com.yanfan.ccapicode.bean.dto.DeviceFunctionDTO;
//import com.yanfan.ccapicode.bean.dto.DeviceMessageDTO;
//import com.yanfan.ccapicode.service.report.ReportMessageReportShuntHandler;
//import org.junit.jupiter.api.Test;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//
//import java.io.IOException;
//import java.util.ArrayList;
//import java.util.List;
//
///**
// * :)
// * */
//@SpringBootTest
//public class DeviceReportService {
//
//    @Autowired
//    private ReportMessageReportShuntHandler deviceMessageReportShuntHandler;
//
//    @Test
//    public void baidu() throws IOException {
//    }
//
//    @Test
//    public void baidu2() {
//        DeviceMessageDTO deviceMessageDTO = new DeviceMessageDTO();
//        List<DeviceFunctionDTO> functions = new ArrayList<>();
//        DeviceFunctionDTO function = new DeviceFunctionDTO();
//        function.setSignCode("switch");
//        function.setValue("0");
//        functions.add(function);
//        deviceMessageDTO.setDeviceFunctions(functions);
//        deviceMessageDTO.setDeviceId("1");
//        deviceMessageDTO.setProductId("6b920ee9b5cd430693cdfe683f8936bb");
//        deviceMessageReportShuntHandler.messageShunt(JSONObject.toJSONString(deviceMessageDTO));
//    }
//}
